package com.rentplant.mapper;


import com.alibaba.fastjson.JSONObject;
import com.rentplant.Pojo.helpcollect;
import com.rentplant.Pojo.helpcollectanduser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper  //申明作为底层交互
@Repository
public interface helpCollectMapper {

//    查询该用户是否收藏
    public List<helpcollect> isCollect(JSONObject helpcollectinfo);

    //收藏求租信息
    public boolean addHelpCollect(JSONObject helpcollectinfo);

    //取消求助收藏
    public boolean delHelpCollect(JSONObject helpcollectinfo);

//    展示用户收藏的求租信息
    public List<helpcollectanduser>showHelpCollect(JSONObject userinfo);
}
